package com.yangrd.airship.common.ex;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * description: HttpStatusException
 *
 * @author: yangrd
 * @date: 2021/7/9
 * @version: 1.0
 */

@Getter
public class HttpStatusException extends RuntimeException{

    private final HttpStatus httpStatus;

    public HttpStatusException(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }

    public HttpStatusException(String s, HttpStatus httpStatus) {
        super(s);
        this.httpStatus = httpStatus;
    }

    public HttpStatusException(String s, Throwable throwable, HttpStatus httpStatus) {
        super(s, throwable);
        this.httpStatus = httpStatus;
    }
}
